<template>
    <div class="twoTitleBox">
        <div class="txt">{{text}}<slot/></div>
    </div>
</template>

<script>
import { reactive,toRefs,getCurrentInstance } from 'vue'
import {useRoute,useRouter} from 'vue-router'
import { useStore } from 'vuex'
import myButton from './myButton.vue'

export default {
    components:{
       myButton
    },
    props:{
        text:String
    },
    setup(props,context){
        const router = useRouter()
        const route = useRoute()
        const store = useStore()
        const {proxy} = getCurrentInstance()

        const state = reactive({
            
        })

        return{
            ...toRefs(state)
        }
    }
}
</script>

<style lang="scss" scoped>
    .twoTitleBox{
        display: flex;
        height: 50px;
        background: url(/images/titlebg.png) left center repeat-x;
        background-size: auto 20px;
        justify-content: center;
        overflow: hidden;
        font-size: 22px;
        font-weight: 500;
        color: #FFFFFF;
        font-family: Inter-Medium, Inter;
        .txt{
            height: 100%;
            line-height: 50px;
            padding: 0 40px;
            background: url(/images/btnbg2.png) left top no-repeat;
            background-size: 100% 100%;
            font-weight: 500;
            font-size: 22px;
            color: #fff;
        }
    }
</style>